package com.medical.model.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.*;

import java.time.LocalDateTime;

/**
 * @author TISNIW
 * @version 1.0
 * @date 2024/10/20 9:21
 * @desc
 */
@Getter
@Setter
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("users")
public class User {


    @TableId(value = "id")
    private Long id;

    @TableField("user_name")
    private String username;

    @TableField("password")
    private String password;


    @TableField(value = "created_at", fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @TableField(value = "updated_at", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updatedAt;
}
